package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-23
 */
@TableName("t_bill_check")
public class BillCheck extends Model<BillCheck> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 核对编号
     */
    private String billCheckNum;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date beginTime;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date endTime;
    /**
     * 交易对象
     */
    private String traner;
    /**
     * 收银单据数-对应t_bill表的条数
     */
    private Integer billCount;
    /**
     * 总金额
     */
    private Float moneyAll;
    /**
     * 转接金额-做转结的负账
     */
    private Float moneyNotPay;
    /**
     * 现金
     */
    private Float cash;
    /**
     * 微信
     */
    private Float weixin;
    /**
     * 支付宝
     */
    private Float alipay;
    private Float bank;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 操作人
     */
    private Integer editUser;
    /**
     * 网点ID
     */
    @TableField("dot_id")
    private Integer dotId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBillCheckNum() {
        return billCheckNum;
    }

    public void setBillCheckNum(String billCheckNum) {
        this.billCheckNum = billCheckNum;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getTraner() {
        return traner;
    }

    public void setTraner(String traner) {
        this.traner = traner;
    }

    public Integer getBillCount() {
        return billCount;
    }

    public void setBillCount(Integer billCount) {
        this.billCount = billCount;
    }

    public Float getMoneyAll() {
        return moneyAll;
    }

    public void setMoneyAll(Float moneyAll) {
        this.moneyAll = moneyAll;
    }

    public Float getMoneyNotPay() {
        return moneyNotPay;
    }

    public void setMoneyNotPay(Float moneyNotPay) {
        this.moneyNotPay = moneyNotPay;
    }

    public Float getCash() {
        return cash;
    }

    public void setCash(Float cash) {
        this.cash = cash;
    }

    public Float getWeixin() {
        return weixin;
    }

    public void setWeixin(Float weixin) {
        this.weixin = weixin;
    }

    public Float getAlipay() {
        return alipay;
    }

    public void setAlipay(Float alipay) {
        this.alipay = alipay;
    }

    public Float getBank() {
        return bank;
    }

    public void setBank(Float bank) {
        this.bank = bank;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getEditUser() {
        return editUser;
    }

    public void setEditUser(Integer editUser) {
        this.editUser = editUser;
    }

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BillCheck{" +
        "id=" + id +
        ", billCheckNum=" + billCheckNum +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", traner=" + traner +
        ", billCount=" + billCount +
        ", moneyAll=" + moneyAll +
        ", moneyNotPay=" + moneyNotPay +
        ", cash=" + cash +
        ", weixin=" + weixin +
        ", alipay=" + alipay +
        ", bank=" + bank +
        ", createTime=" + createTime +
        ", editUser=" + editUser +
        ", dotId=" + dotId +
        "}";
    }
}
